package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-06-25
 * Time: 14:48
 */
class Student{
    //成员变量
    public String name;
    public int age;
    public double score;
    public   static String classes = "2022";
    //构造方法
    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    //静态成员方法
    public static String fun( ){
//        student.goclass();
//        student.name="122";
       return classes;
    }
    //成员方法
    public void goclass(){
        fun();
        classes = "123";
        System.out.println("去上课");
    }
}
public class Tset {
    public static void fun(){
        System.out.println(1);
    }
    public static void main(String[] args) {
        fun();
//        Student student0 = new Student("张三", 19,60.0);
//        System.out.println(Student.fun());
//        System.out.println(student0.fun());
//        Student student1 = new Student("李四",29,90.0);
    }
}
